package main

import (
	"log"
	"net/http"
	"robot/cache"
	"robot/controller"
	"robot/database"
)

func main() {
	cache.SessionInit()
	database.NewSqliteConn()
	server := &http.Server{
		Addr:    ":8080",
		Handler: controller.NewHandler(),
	}
	log.Println("Starting!")
	log.Fatal(server.ListenAndServe())
}
